package com.czr.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel(description = "注册参数")
public class RegParam {

    @ApiModelProperty(value = "主键(注册时不用传，修改资料时必传)")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户账号")
    @NotEmpty(message = "用户账号不能为空！")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotEmpty(message = "密码不能为空！")
    private String password;

    @ApiModelProperty(value = "手机号码")
    @NotEmpty(message = "手机号码不能为空！")
    private String phone;

    @ApiModelProperty(value = "姓名")
    @NotEmpty(message = "姓名不能为空！")
    private String name;

    @ApiModelProperty(value = "医院名称")
    @NotEmpty(message = "医院不能为空！")
    private String unit;

    @ApiModelProperty(value = "用户头像")
    @TableField("user_logo")
    private String userLogo;


    @ApiModelProperty(value = "用户昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "出生年月")
    @TableField("birth_date")
    private String birthDate;

//    @ApiModelProperty(value = "来京年月")
//    @TableField("coming_date")
//    private String comingDate;

    @ApiModelProperty(value = "职务职称")
    @TableField("user_post")
    private String userPost;

//    @ApiModelProperty(value = "办公电话")
//    @TableField("office_phone")
//    private String officePhone;

    @ApiModelProperty(value = "电子邮箱")
    @TableField("email")
    private String email;

//    @ApiModelProperty(value = "原籍地址")
//    @TableField("org_address")
//    private String orgAddress;

//    @ApiModelProperty(value = "现居地址")
//    @TableField("current_address")
//    private String currentAddress;

//    @ApiModelProperty(value = "微信二维码")
//    @TableField("wx_logo")
//    private String wxLogo;

//    @ApiModelProperty(value = "籍贯")
//    @TableField("org")
//    private String org;


    @ApiModelProperty(value = "所属省份")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "所属市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "所属区县")
    @TableField("area")
    private String area;

//    @ApiModelProperty(value = "电话是否公开联系方式 0公开 1不公开")
//    @TableField("isOpen")
//    private Integer isOpen;
//
//    @ApiModelProperty(value = "办公电话是否公开联系方式 0公开 1不公开")
//    @TableField("isOpenOffice")
//    private Integer isOpenOffice;

    @ApiModelProperty(value = "排序字段")
    @TableField("u_sort")
    private Integer uSort;

    @ApiModelProperty(value = "我的身份(1，我是医生，2我是患者)")
    @TableField("u_identity")
    private Integer uIdentity;

    @ApiModelProperty(value = "是否手术(1，观察，2半切 ，3次全切，4全切)")
    @TableField("is_operation")
    private Integer isOperation;

    @ApiModelProperty(value = "手术时间")
    @TableField("operation_time")
    private String operationTime;

    @ApiModelProperty(value = "是否碘131 1是 2否")
    @TableField("is_dian")
    private Integer isDian;

    @ApiModelProperty(value = "碘131剂量")
    @TableField("dose")
    private String dose;

    @ApiModelProperty(value = "其他描述")
    @TableField("u_describe")
    private String uDescribe;

}
